/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.ncsu.csc.usart;

import java.io.InputStream;
import java.io.IOException;
/**
 *
 * @author Richard Pospesel
 */
public class USARTInputStream extends InputStream
{
	public int read() throws IOException
	{
		return USART.readUART();
	}

	public int read(byte[] b) throws IOException
	{
		return USART.readUART(b);
	}

    public int available() throws IOException
    {
        return USART.availableBytes();
    }
}
